package com.spark.invoicings.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;

import lombok.Data;

/**
 * 出库单明细表
 * 
 * @author sunyan
 * @email sunyan@gmail.com
 * @date 2024-06-13 11:15:03
 */
@Data
@TableName("t_outbound_detail")
public class OutboundDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 出库单明细id
	 */
	@TableId(type = IdType.AUTO)
	private Integer outboundDetailId;
	/**
	 * 所属出库单id
	 */
	private Integer outboundOrderId;
	/**
	 * 商品id
	 */
	private Integer productId;
	/**
	 * 出库数量
	 */
	private Integer outboundQuantity;
	/**
	 * 出库单价
	 */
	private double outboundPrice;
	/**
	 * 备注
	 */
	private String notes;
	/**
	 * 订单明细id
	 */
	private Integer orderDetailId;
	/**
	 * 发货明细id
	 */
	private Integer shipmentDetailId;
	/**
	 * 采购退货明细id
	 */
	private Integer purchaseReturnDetailId;

	@TableField(exist = false)
	private OutboundOrder outboundOrder;

	@TableField(exist = false)
	private Product product;

	public Integer getOutboundDetailId() {
		return outboundDetailId;
	}

	public void setOutboundDetailId(Integer outboundDetailId) {
		this.outboundDetailId = outboundDetailId;
	}

	public Integer getOutboundOrderId() {
		return outboundOrderId;
	}

	public void setOutboundOrderId(Integer outboundOrderId) {
		this.outboundOrderId = outboundOrderId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Integer getOutboundQuantity() {
		return outboundQuantity;
	}

	public void setOutboundQuantity(Integer outboundQuantity) {
		this.outboundQuantity = outboundQuantity;
	}

	public double getOutboundPrice() {
		return outboundPrice;
	}

	public void setOutboundPrice(double outboundPrice) {
		this.outboundPrice = outboundPrice;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public Integer getOrderDetailId() {
		return orderDetailId;
	}

	public void setOrderDetailId(Integer orderDetailId) {
		this.orderDetailId = orderDetailId;
	}

	public Integer getShipmentDetailId() {
		return shipmentDetailId;
	}

	public void setShipmentDetailId(Integer shipmentDetailId) {
		this.shipmentDetailId = shipmentDetailId;
	}

	public Integer getPurchaseReturnDetailId() {
		return purchaseReturnDetailId;
	}

	public void setPurchaseReturnDetailId(Integer purchaseReturnDetailId) {
		this.purchaseReturnDetailId = purchaseReturnDetailId;
	}

	public OutboundOrder getOutboundOrder() {
		return outboundOrder;
	}

	public void setOutboundOrder(OutboundOrder outboundOrder) {
		this.outboundOrder = outboundOrder;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
}
